import request from '@/utils/request'

// 查询拖轮数据列表
export function listTugboat(query) {
  return request({
    url: '/system/tugboat/list',
    method: 'get',
    params: query
  })
}

// 查询拖轮数据详细
export function getTugboat(tugboatId) {
  return request({
    url: '/system/tugboat/' + tugboatId,
    method: 'get'
  })
}

// 新增拖轮数据
export function addTugboat(data) {
  return request({
    url: '/system/tugboat',
    method: 'post',
    data: data
  })
}

// 修改拖轮数据
export function updateTugboat(data) {
  return request({
    url: '/system/tugboat',
    method: 'put',
    data: data
  })
}

// 删除拖轮数据
export function delTugboat(tugboatId) {
  return request({
    url: '/system/tugboat/' + tugboatId,
    method: 'delete'
  })
}
